package com.github.fancyideas.security.repository;

import com.github.fancyideas.security.module.view.UserRoleView;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRoleViewRepo extends JpaRepository<UserRoleView, Long> {

    UserRoleView findViewUserRoleByUserId(Long userId);

    UserRoleView findViewUserRoleByRoleName(String roleName);


}
